import 'package:flutter/material.dart';
import 'package:flutter_business_2003a/provider/detail_info_provider.dart';
import 'package:flutter_screenutil/screenutil.dart';
import 'package:provider/provider.dart';

class DetailGoodsDetail extends StatelessWidget {
  const DetailGoodsDetail({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: ScreenUtil().setWidth(750).toDouble(),
      child: Column(
        children: [
          Image.network(
            Provider.of<DetailInfoProvider>(context)
                .goodsInfo!
                .goods_detail_one!,
            width: ScreenUtil().setWidth(750).toDouble(),
          ),
          Image.network(
            Provider.of<DetailInfoProvider>(context)
                .goodsInfo!
                .goods_detail_two!,
            width: ScreenUtil().setWidth(750).toDouble(),
          ),
        ],
      ),
    );
  }
}
